package com.cola.clone;

/**
 * @Grup:com.cola.clone
 * @Auther:cola
 * @Data:2021/3/16-2021-03-15:56
 * @version:1.0
 */
public class Test {
    public static void main(String[] args) {
        Cat cat=new Cat("喵喵",12);
        try {
            Cat newcat=(Cat)cat.clone();
            System.out.println("cat="+cat);
            System.out.println("newcat="+newcat);
            System.out.println(cat==newcat);
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }

    }
}
